﻿using SHZY.Common.Security;
using SHZY.system.Entitys.Dto.QmsBaseOverduesetting;
using Mapster;

namespace SHZY.system.Entitys.Mapper.QmsBaseOverduesetting;

public class Mapper : IRegister
{
	public void Register(TypeAdapterConfig config)
	{
		config.ForType<QmsBaseOverduesettingCrInput, QmsBaseOverduesettingEntity>()
			.Map(dest => dest.RecipientList, src => src.recipientList.ToJsonString())
		;
		config.ForType<QmsBaseOverduesettingEntity, QmsBaseOverduesettingInfoOutput>()
			.Map(dest => dest.recipientList, src => src.RecipientList.ToObject<List<string>>())
		;
	}
}
